﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace 应用程序
{
    internal class Program
    {
        public static Func<int, int, bool> dda1;

        static void Main(string[] args)
        {
            dda1 = dda;
            int[] a = new int[10] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            Console.WriteLine("请输入一个整数");

            dda2(a);

        }

        public static bool dda(int a,int b)
        {
            return a < b;
        }

        public static void dda2<T>(T[] a)
        {
            foreach (var item in a)
            {
                Console.WriteLine(item);
            }
        }

    }
}
